package com.uu.controller;

import com.uu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class DemoController {

    @Autowired
    private UserService userService;

    @RequestMapping("/h")
    public String hello(Model model) {
        userService.user();
        model.addAttribute("a","b");
        return "test";
    }
}
